﻿<Window x:Class="ChaosKitInterface.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="ChaosKit Interface" Height="342" Width="620" Topmost="True">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="281*"></RowDefinition>
            <RowDefinition Height="23*"></RowDefinition>
        </Grid.RowDefinitions>
        <TabControl Name="tabControl1" HorizontalContentAlignment="Stretch" SelectionChanged="tabControl1_SelectionChanged">
            <TabItem Header="Create Series" Name="tabCreate">
                <Grid ToolTip="Create a new time series">
                    <Label Height="28" HorizontalAlignment="Left" Margin="15,26,0,0" Name="label1" VerticalAlignment="Top" Width="77">Series name</Label>
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="98,28,0,0" Name="CreateSeriesNameBox" VerticalAlignment="Top" Width="140" >
                        <ToolTipService.ToolTip>
                            <ToolTip HorizontalOffset="10" VerticalOffset="10">
                                <ToolTip.Content>
                                    <TextBlock Text="Give a descriptive name to the time series." />
                                </ToolTip.Content>
                            </ToolTip>
                        </ToolTipService.ToolTip>
                    </TextBox>
                    <Label Height="28" HorizontalAlignment="Left" Margin="15,60,0,0" Name="label2" VerticalAlignment="Top" Width="77">Sample Time</Label>
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="98,62,0,0" Name="CreateSeriesSampleTimeBox" VerticalAlignment="Top" Width="140" >
                        <ToolTipService.ToolTip>
                            <ToolTip HorizontalOffset="10" VerticalOffset="10">
                                <ToolTip.Content>
                                    <TextBlock Text="Set the default period between samples, format: hh:mm:ss." />
                                </ToolTip.Content>
                            </ToolTip>
                        </ToolTipService.ToolTip>
                    </TextBox>
                    <Label HorizontalAlignment="Left" Margin="15,94,0,0" Name="label3" Width="77" Height="28.04" VerticalAlignment="Top">Dead Period</Label>
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="98,96,0,0" Name="CreateSeriesDeadPeriodBox" VerticalAlignment="Top" Width="140" >
                        <ToolTipService.ToolTip>
                            <ToolTip HorizontalOffset="10" VerticalOffset="10">
                                <ToolTip.Content>
                                    <TextBlock Text="Set the minimum time to be considered a gap in processing. Leave empty if not required." />
                                </ToolTip.Content>
                            </ToolTip>
                        </ToolTipService.ToolTip>
                    </TextBox>
                    <CheckBox Height="23" Margin="293,31,175,0" Name="CreateSeriesDifferencingBox" VerticalAlignment="Top" ToolTip="If differenciong is selected, the difference between adjacent samples is used in processing.">Differencing</CheckBox>
                    <CheckBox Height="17" Margin="293,68,175,0" Name="CreateSeriesInterpolationBox" VerticalAlignment="Top" ToolTip="Interpolate between stored samples where required.">Interpolation</CheckBox>
                    <Button Height="23" HorizontalAlignment="Left" Margin="98,0,0,75" Name="CreateSeriesButton" VerticalAlignment="Bottom" Width="140" Click="CreateSeriesButton_Click" ToolTip="Creates an empty series  on the server.">Create Series</Button>
                </Grid>
            </TabItem>
            <TabItem Header="Select Series" Name="tabSelect">
                <Grid>
                    <Label Height="28" HorizontalAlignment="Right" Margin="0,16,176,0" Name="label5" VerticalAlignment="Top" Width="77">Series name</Label>
                    <TextBox Height="23" Margin="0,18,30,0" Name="SelectSeriesSeriesNameBox" VerticalAlignment="Top" HorizontalAlignment="Right" Width="140" ToolTip="Edit the name of the series" />
                    <Label Height="28" HorizontalAlignment="Right" Margin="0,50,176,0" Name="label13" VerticalAlignment="Top" Width="77">Sample Time</Label>
                    <TextBox Height="23" Margin="0,52,30,0" Name="SelectSeriesSampleTimeBox" VerticalAlignment="Top" HorizontalAlignment="Right" Width="140" ToolTip="Edit the sample time" />
                    <Label Height="28.04" HorizontalAlignment="Right" Margin="0,84,176,0" Name="label14" VerticalAlignment="Top" Width="77">Dead Period</Label>
                    <TextBox Height="23" Margin="0,86,30,0" Name="SelectSeriesDeadPeriodBox" VerticalAlignment="Top" HorizontalAlignment="Right" Width="140" ToolTip="Edit the dead period" />
                    <CheckBox Margin="0,0,50,101" Name="SelectSeriesDifferencingBox" Height="23.04" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="120" ToolTip="Edit differencing">Differencing</CheckBox>
                    <CheckBox Height="17" Margin="0,0,50,70" Name="SelectSeriesInterpolationBox" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="120" ToolTip="Edit interpolation">Interpolation</CheckBox>
                    <Button Height="23" Margin="0,0,30,26" Name="SelectSeriesUpdateBox" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="140" Click="SelectSeriesUpdateBox_Click" ToolTip="Update the series">Update Series</Button>
                    <ListBox HorizontalAlignment="Left" Margin="25,18,0,70" Name="SelectSeriesListBox" Width="261" ToolTip="List of existing series" />
                    <Button Height="23" HorizontalAlignment="Left" Margin="54,0,0,26" Name="SelectSeriesSelectButton" VerticalAlignment="Bottom" Width="75" Click="SelectSeriesSelectButton_Click" ToolTip="Select one of the series">Select</Button>
                    <Button Height="23" HorizontalAlignment="Left" Margin="164,0,0,26" Name="SelectSeriesDeleteButton" VerticalAlignment="Bottom" Width="75" Click="SelectSeriesDeleteButton_Click" ToolTip="Delete the current series">Delete</Button>
                </Grid>
            </TabItem>
            <TabItem Header="Upload data" Name="tabUpload" ToolTip="Upload data to a time series">
                <Grid>
                    <RichTextBox Height="190.82" Margin="33,32.82,232,25" Name="UploadDataSourceBox" Width="323" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" IsDocumentEnabled="True" ToolTip="Edit window" />
                    <RadioButton Height="16" HorizontalAlignment="Right" Margin="0,61,57,0" Name="UploadDataRadioValueOnly" VerticalAlignment="Top" Width="120" GroupName="DataType" IsChecked="True" ToolTip="Data contains just numeric values">Value only</RadioButton>
                    <RadioButton Height="16" HorizontalAlignment="Right" Margin="0,83,57,0" Name="UploadDataRadioValueTime" VerticalAlignment="Top" Width="120" GroupName="DataType" ToolTip="Data contains numeric values and dates">Value &amp; Date/Time</RadioButton>
                    <Label Height="28" Margin="33,6,86,0" Name="label6" VerticalAlignment="Top">Paste or edit data, one line per sample, commas or tabs separating values and times</Label>
                    <Button Height="23" HorizontalAlignment="Right" Margin="0,0,57,96" Name="UploadDataUploadButton" VerticalAlignment="Bottom" Width="120" ClipToBounds="True" Click="UploadDataUploadButton_Click" ToolTip="Upload the data">Upload</Button>
                </Grid>
            </TabItem>
            <TabItem Header="Analyze and Predict" Name="tabAnalyze">
                <Grid>
                    <Button Height="23" HorizontalAlignment="Left" Margin="31,21,0,0" Name="AnalyzeAndPredictAnalyzeButton" VerticalAlignment="Top" Width="137" Click="AnalyzeAndPredictAnalyzeButton_Click" ToolTip="Analyze the current series (Charges apply)">Analyze</Button>
                    <Button Height="23" Margin="239,21,212,0" Name="AnalyzeAndPredictPredictButton" VerticalAlignment="Top" Click="AnalyzeAndPredictPredictButton_Click" ToolTip="Predict at the end of the current series (Charges apply)">Predict</Button>
                    <Label Height="28" HorizontalAlignment="Right" Margin="0,19.52,111,0" Name="label7" VerticalAlignment="Top" Width="74">Predictions</Label>
                    <ComboBox Height="23" HorizontalAlignment="Right" Margin="0,21,24,0" Name="AnalyzeAndPredictPredictionsDropDown" VerticalAlignment="Top" Width="81" ToolTip="Number of predictions">
                        <ComboBoxItem IsSelected="True">1</ComboBoxItem>
                        <ComboBoxItem>2</ComboBoxItem>
                        <ComboBoxItem>3</ComboBoxItem>
                        <ComboBoxItem>4</ComboBoxItem>
                        <ComboBoxItem>5</ComboBoxItem>
                        <ComboBoxItem>6</ComboBoxItem>
                        <ComboBoxItem>7</ComboBoxItem>
                        <ComboBoxItem>8</ComboBoxItem>
                        <ComboBoxItem>9</ComboBoxItem>
                    </ComboBox>
                    <Label Height="28" HorizontalAlignment="Left" Margin="31,50,0,0" Name="label8" VerticalAlignment="Top" Width="120">Results</Label>
                    <TextBlock Margin="31,84,24,18" Name="AnalyzeAndPredictResultsBox" ToolTip="Rsults window" />
                </Grid>
            </TabItem>
            <TabItem Header="Update and Predict" Name="tabUpdate" ToolTip="Add new values to an existing series">
                <Grid>
                    <Button Height="23" Margin="261,11,190,0" Name="UpdateAndPredictPredictButton" VerticalAlignment="Top" Click="UpdateAndPredictPredictButton_Click" ToolTip="Predict off the end of the series ($)">Predict</Button>
                    <Label Height="28" HorizontalAlignment="Right" Margin="0,9.48,110,0" Name="label9" VerticalAlignment="Top" Width="74">Predictions</Label>
                    <ComboBox Height="23" HorizontalAlignment="Right" Margin="0,11.48,45,0" Name="UpdateAndPredictPredictionsDropDown" VerticalAlignment="Top" Width="59" ToolTip="Numberof iterated predictions to make.">
                        <ComboBoxItem IsSelected="True">1</ComboBoxItem>
                        <ComboBoxItem>2</ComboBoxItem>
                        <ComboBoxItem>3</ComboBoxItem>
                        <ComboBoxItem>4</ComboBoxItem>
                        <ComboBoxItem>5</ComboBoxItem>
                        <ComboBoxItem>6</ComboBoxItem>
                        <ComboBoxItem>7</ComboBoxItem>
                        <ComboBoxItem>8</ComboBoxItem>
                        <ComboBoxItem>9</ComboBoxItem>
                    </ComboBox>
                    <Label Height="28" Margin="261,40,207,0" Name="label10" VerticalAlignment="Top">Results</Label>
                    <TextBlock Margin="261,74.48,45,27.52" Name="UpdateAndPredictResultsBox" ToolTip="Predictions window" />
                    <Label Height="28" HorizontalAlignment="Left" Margin="26,9.48,0,0" Name="label11" VerticalAlignment="Top" Width="120">New sample value</Label>
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="26,32,0,0" Name="UpdateAndPredictNewValueBox" VerticalAlignment="Top" Width="170" ToolTip="Sample value" />
                    <Button Height="23" HorizontalAlignment="Left" Margin="26,0,0,27.52" Name="UpdateAndPredictUpdateButton" VerticalAlignment="Bottom" Width="133" Click="UpdateAndPredictUpdateButton_Click" ToolTip="Add new sample">Add new sample</Button>
                   <GroupBox Header="Time of sample" Margin="26,62,0,56" Name="groupBox1" HorizontalAlignment="Left" Width="216">
                        <Grid>
                            <RadioButton Height="16" Margin="14,16,70,0" Name="UpdateSampleTimeNowRadio" VerticalAlignment="Top" GroupName="SampleTimeSelect" ToolTip="Time stamp will be current date/time.">Now</RadioButton>
                            <RadioButton Margin="14,38,6,54" Name="UpdateSampleTimeEndPlusRadio" GroupName="SampleTimeSelect" IsChecked="True" ToolTip="Sample will be placed one sample period after tjhe end.">End of series +1 sample period</RadioButton>
                            <RadioButton Height="16" Margin="14,0,70,32" Name="UpdateSampleTimeFixedRadio" VerticalAlignment="Bottom" GroupName="SampleTimeSelect" ToolTip="Placesample at a fixed point in time.">Fixed date/time</RadioButton>
                            <TextBox Height="23" Margin="14,0,20,3" Name="UpdateSampleTimeFixedBox" VerticalAlignment="Bottom" />
                        </Grid>
                    </GroupBox>
                </Grid>
            </TabItem>
            <TabItem Header="Set web service ID" Name="tabServiceID" ToolTip="Set your  web service ID">
                <Grid>
                    <TextBlock Height="65" Margin="19,23,101,0" Name="textBlock1" VerticalAlignment="Top" Text="To get a web service ID,  go to www.scientio.com, sign in using a windows Live ID or a variety of other IDs, go to the Account page and copy the Web Service ID you have been assigned." TextWrapping="Wrap" SnapsToDevicePixels="True" />
                    <Label HorizontalAlignment="Left" Margin="19,94,0,0" Name="label4" Width="120" Height="28.04" VerticalAlignment="Top">Web Service ID</Label>
                    <TextBox Margin="157,94,159,0" Name="SetWebServiceIDBox" Height="23.04" VerticalAlignment="Top" ToolTip="The web  service ID" />
                    <Button Height="23" Margin="157,0,233,78" Name="SetWebServiceIDButton" VerticalAlignment="Bottom" ClipToBounds="True" Click="SetWebServiceIDButton_Click" ToolTip="Update andsave the web service ID">Set web service ID</Button>
                </Grid>
            </TabItem>
        </TabControl>
        <StatusBar Height="31" Name="statusBar1" VerticalAlignment="Bottom" Grid.RowSpan="2">
         <Label Name="StatusBarWebServiceIDLabel" ToolTip="Status of the web service ID">Web service ID: Not set</Label>
            <Separator/>
            <Label Name="StatusBarSeriesNameLabel">Current series name: Not set</Label>
            <Separator/>
            <Label Name="StatusBarSeriesIDLabel">Current series ID: Not set</Label>
        </StatusBar>
    </Grid>
</Window>
